<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use DB;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use PDO;
class HomeCommentController extends Controller
{
 

 public function postInsert(Request $request)
    {
        // echo 1111111;
         // dd($request->all());
        $comment = $request->input('content');

        $content = $request->except(['_token']);
        // dd($content);

        $res= DB::table('content')->insert($content);
        // die();
       
         return view('home.detail.pinglun',['content'=>$content]);
        
    }


 

}
